<div id="mess"><?php if (isset($mess)) echo $mess; ?></div>
<div id="form">
  <table>
    <?php
    $this->form_validation->set_error_delimiters('<span class="error">', '</span>');

    echo form_open(base_url() . 'user/changePasswd');

    echo "<tr><td><h3>Zmena hesla</h3></td></tr>";

    $add_data = array('name' => 'old_pass',
        'id' => 'old_pass',
        'size' => '25');
    echo "<tr><td>" . form_label('Staré heslo:', 'old_pass') . '</td><td>' . form_password($add_data) . "</td><td>" . form_error('old_pass') . '</td></tr>';


    $add_data = array('name' => 'pass',
        'id' => 'pass',
        'size' => '25');
    echo "<tr><td>" . form_label('Heslo:', 'pass') . '</td><td>' . form_password($add_data) . "</td><td>" . form_error('pass') . '</td></tr>';

    $add_data = array('name' => 'pass2',
        'id' => 'pass2',
        'size' => '25');
    echo "<tr><td>" . form_label('Heslo(potvrdenie):', 'pass2') . '</td><td>' . form_password($add_data) . "</td><td>" . form_error('pass2') . '</td></tr>';


    echo "<tr><td></td><td>" . form_submit('submit', 'Zmeniť heslo', 'id="submit"') . "</td></tr>";

    echo form_close();
    ?>    
  </table>
</div>
